package config

import (
	"os"

	"github.com/joho/godotenv"
)

type Config struct {
	DB struct {
		DSN string
	}
	JWT struct {
		Secret string
	}
}

func Load() *Config {
	_ = godotenv.Load()
	return &Config{
		DB:  struct{ DSN string }{os.Getenv("DB_DSN")},
		JWT: struct{ Secret string }{os.Getenv("JWT_SECRET")},
	}
}
